package cn.com.qiter.staservice.client;

import cn.com.qiter.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Component
@FeignClient("service-ucenter")
public interface UcenterClient {

    //查询某一天注册人数
    @GetMapping("/educenter/member/findAll")
    public Result findAllMember();
    //查询某一天注册人数
    @GetMapping("/educenter/member/countRegister/{day}")
    public Result countRegister(@PathVariable("day") String day);
    //查询林业作业其它数据数量
    @GetMapping("/educenter/pests/countDay/{day}")
    public Result countPestsDay(@PathVariable("day") String day);
    @GetMapping("/educenter/pests/countDay/{day}/{projectId}")
    public Result countPestsDay(@PathVariable("day") String day,@PathVariable("projectId") String projectId);
    @GetMapping("/educenter/pests/countDay/{day}/{projectId}/{memberId}")
    public Result countPestsDay(@PathVariable("day") String day,@PathVariable("projectId") String projectId,@PathVariable("memberId") String memberId);

    //查询林业作业诱捕器数量
    @GetMapping("/educenter/trap/countDay/{day}")
    public Result countTrapDay(@PathVariable("day") String day);
    @GetMapping("/educenter/trap/countDay/{day}/{projectId}")
    public Result countTrapDay(@PathVariable("day") String day,@PathVariable("projectId") String projectId);
    @GetMapping("/educenter/trap/countDay/{day}/{projectId}/{memberId}")
    public Result countTrapDay(@PathVariable("day") String day,@PathVariable("projectId") String projectId,@PathVariable("memberId") String memberId);

    //查询林业作业诱捕器数量
    @GetMapping("/educenter/trap/countTrapAll")
    public Integer countTrapAll();
    //查询林业作业诱捕器数量
    @GetMapping("/educenter/pests/countPestsAll")
    public Integer countPestsAll();
    //查询林业作业诱捕器数量
    @GetMapping("/educenter/project/findAll")
    public Result getProjectAll();
}
